package com.ruoyi.cms.mapper;

import com.ruoyi.cms.domain.Archives;
import com.ruoyi.cms.domain.ArchivesWithRownum;
import com.ruoyi.cms.domain.vo.ArchivesVO;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ArchivesMapper extends BaseMapperPlus<ArchivesMapper, Archives, Archives> {

    List<Map<String,Object>> queryListByPage(Map<String, Object> entity);

    List<Archives> queryListByTagName(@Param("tag")String tagName);

	int insertAdditional(@Param("tableName") String tableName, @Param("cols") Map<String, Object> params);

	Map<String, Object> queryArticleById(Map<String, Object> params);

	int updateAdditional(@Param("tableName") String tableName, @Param("cols") Map<String, Object> additional,@Param("id") String fid);

	int deleteAdditional(Map<String, Object> params);

	int updateTagByPrimaryKey(Archives article);

	List<ArchivesVO> queryListByKeywords(Map<String, Object> entity);

	ArchivesWithRownum queryArticleRowNum(Map<String, Object> params);

	List< ArchivesVO > queryRecommend(Map<String, Object> entity);

	List<Archives> queryListByTop();

	List<Archives> queryAll(@Param("categoryId") String id);
}
